package com.dk.enums;

public enum ResultEnum {
    OK(10000, "操作成功"),//成功
    ER(99999, "操作失败"),//失败
    NO_LOGIN(10001, "用户未登录"),
    FETCH_USERINFO_ERROR(10002, "用户不存在"),
    PWD_ER(10003, "密码错误"),//密码错误
    CODE_ER(10004, "验证码错误"),
    NO_PEERMS(10005, "权限不足"),//没有权限
    BAD_SQL_GRAMMAR(10006, "sql语法错误"),
    FILE_UPLOAD_ERROR(10007, "文件上传错误"),
    FILE_DELETE_ERROR(10008, "文件刪除错误"),
    UNKNOWN_REASON(10009, "未知错误"),
    PARAM_ERROR(10010, "参数不正确"),
    JSON_PARSE_ERROR(10011, "json解析异常"),
    GATEWAY_ERROR(10012, "服务不能访问"),
    LOGIN_PHONE_ERROR(10013, "手机号码不正确"),
    LOGIN_DISABLED_ERROR(10014, "该用户已被禁用"),
    REGISTER_MOBLE_ERROR(10015, "手机号已被注册"),
    LOGIN_AUTH(10016, "需要登录"),
    LOGIN_ERROR(10017, "登录失败"),
    NO_DELETE(10018, "有子级,不能删除,请先删除子级"),
    LOGIN_OK(10019, "登录成功"),
    UNAUDITED(10020, "账号未审核"),
    FETCH_USERINFO(10021, "该用户存在,重新输入"),
    CAPTCHA(10022, "手机号码正确,请发送验证码"),
    CODE_SUCCESSFULLY(10023, "验证码发送成功"),
    CODE_EXPIRES(10024, "验证码过期"),
    COLLECT_SUCCESS(10025, "收藏成功"),
    REPETITION_COLLECT(10026, "请勿重复收藏"),
    SUBSCRIBE_OK(10027, "预约成功 请留意接听客服电话并确认上门时间及其它操作"),
    BAIL_NOPAY(10028, "未支付保证金"),
    FEIGN_FALLBACK(10029,"微服务调用失败");

    private Integer dataCode;
    private String message;

    public Integer getDataCode() {
        return dataCode;
    }

    public void setDataCode(Integer dataCode) {
        this.dataCode = dataCode;
    }

    public String getMessage() {
        return message;
    }


    public void setMessage(String message) {
        this.message = message;
    }

    ResultEnum() {
    }

    ResultEnum(Integer dataCode, String message) {
        this.dataCode = dataCode;
        this.message = message;
    }
}